# -*- coding: utf-8 -*-
from django.db import models

class UserManager(models.Manager):

    def get_queryset(self):
        return super().get_queryset().filter(active=True)

    def save(self,*args,**kwargs):
        """
        这里可以做重复创建处理
        """
        return super().save(*args,**kwargs)